registerTests([
function Intersect_Test_0()
{
	var myArray = [8,6,7,5,3,0,9];
	var myArray2 = [5,8];
	var result = myArray.Intersect(myArray2);
	Assert.areEqual(result.length, 2);
	Assert.areEqual(result[0], 8);
	Assert.areEqual(result[1], 5);
},
function Intersect_Test_Selector_0()
{
	var myArray = [{x:1, y:3}, {x:2, y:3}, {x:3, y:42}, {x:99, y:42}];
	var myArray2 = [1,99];
	var result = myArray.Intersect(myArray2, "(a, b) => a == b.x");
	Assert.areEqual(result.length, 2);
	Assert.isTrue(result[0].x == 1 && result[0].y == 3);
	Assert.isTrue(result[1].x == 99 && result[1].y == 42);
},
]);